home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Processes / SubLaunch / C Shell.r next >
Encoding:
Text File  |  1993-01-18  |  1.0 KB  |  59 lines  |  [TEXT/MPS ]

  1. #include "Types.r"
  2.  
  3. #define AllItems    0b1111111111111111111111111111111    /* 31 flags */
  4. #define MenuItem2    0b00010
  5.  
  6. resource 'DLOG' (128, "About…") {
  7.     {66, 102, 224, 400},
  8.     dBoxProc, visible, noGoAway, 0x0, 128, ""
  9. };
  10.  
  11. resource 'DITL' (128) {
  12.      {
  13. /* 1 */ {130, 205, 150, 284},
  14.         button {
  15.             enabled,
  16.             "Continue"
  17.         };
  18. /* 2 */ {104, 144, 120, 296},                /* SourceLanguage Item */
  19.         staticText {
  20.             disabled,
  21.             ""
  22.         };
  23. /* 3 */ {88, 144, 105, 218},                /* Author Item */
  24.         staticText {
  25.             disabled,
  26.             ""
  27.         };
  28. /* 4 */ {8, 32, 26, 273},
  29.         staticText {
  30.             disabled,
  31.             "Macintosh Programmer's Workshop"
  32.         };
  33. /* 5 */ {32, 103, 50, 202},
  34.         staticText {
  35.             disabled,
  36.             ""
  37.         };
  38. /* 6 */ {88, 16, 104, 144},
  39.         staticText {
  40.             enabled, "Source Language:"
  41.         };
  42. /* 7 */ {104, 16, 120, 144},
  43.         staticText {
  44.             enabled, "Brought to you by:"
  45.         }
  46.     }
  47. };
  48.  
  49. resource 'MENU' (128, "Apple", preload) {
  50.     128, textMenuProc,
  51.     AllItems & ~MenuItem2,    /* Disable item #2 */
  52.     enabled, apple,
  53.     {
  54.         "About…",
  55.             noicon, nokey, nomark, plain;
  56.         "-",
  57.             noicon, nokey, nomark, plain
  58.     }
  59. };